﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common.Master" AutoEventWireup="true"
    CodeBehind="PrintEntCatagory.aspx.cs" Inherits="Web.Views.ArchiveFlowView.PrintEntCatagory" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" src="../../Javascript/UserControls.js"></script>
    <script src="../../Scripts/WShellHelper.js?ver=1" type="text/javascript"></script>
    <script language="javascript">        //注册表的网页打印路径

        //设置默认的页眉页脚
        function SetupPage() {
            try {
                
                
                WShellHelper.setPrintHeader("");
                WShellHelper.setPrintFooter("");
                WShellHelper.setPrintMarginBottom("0.39"); //0.39相当于把页面设置里面的边距设置为10
                WShellHelper.setPrintMarginLeft("0.39");
                WShellHelper.setPrintMarginRight("0.39");
                WShellHelper.setPrintMarginTop("0.39");
            }
            catch (e) {
                alert(e.message);
             }
        }

        function printdiv(printpage) {

            WShellHelper.setPrintOrientation(true);

            setTimeout(function () {
                SetupPage();
                var headstr = "<html><head><title></title></head><body>";
                var footstr = "</body>";
                var newstr = document.getElementById(printpage).innerHTML;
                var oldstr = document.body.innerHTML;
                newstr = newstr.replace("打印企业档案目录", "");
                document.body.innerHTML = headstr + newstr + footstr;
                window.print();
                document.body.innerHTML = oldstr;
                return false;
            }, 500);

            
        }
    </script>
    <style type="text/css">
        
    wordspace2
    {
        letter-spacing:25px;
        }
    
    .table_01
    {
        border:1px solid black;
        border-collapse:collapse;
    }  
    
    .table_01 tr
    {
        height:78px;
    }  
        
    .table_01 th
    {
    	font-size:20px;
    	word-spacing:25px;
    	font-weight:normal;
    	border:1px solid black;
    	border-collapse:collapse;
    	}
    	.table_01 td
    {
    	font-size:16px;
    	font-weight:normal;
    	border:1px solid black;
    	}
    	
    h3
    {
        color:Black;
        margin-bottom:30px;
        line-height:32px;
        }
        
    .cellPadding
    {
        padding-left:5px;
        }
    
    .titlePre
    {
        white-space:pre-wrap;
    }
        
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="toolbar2">
        <button type="button" class="sexybutton" id="btnBack" onclick="javascript:history.go(-1);">
            <span><span><span class="transfer">返回</span></span></span></button>
    </div>
    <div id="divAgent" style="margin-top: 5px; display:none;">
        <h3 style="font-size:40px; font-family:宋体; height:60px; word-spacing:28px;">
            企&nbsp;业&nbsp;档&nbsp;案&nbsp;目&nbsp;录</h3>
        <ep:EPGridView ID="gv_ArchiveList" runat="server" Width="100%" AutoGenerateColumns="False"
            DataKeyNames="DataID" CssClass="gridviewblack" dataSortExpression="" EnableEmptyContentRender="True"
            EnableModelValidation="True" HeaderStyle-Height="100"  HeaderStyle-HorizontalAlign="Center"
            HeaderStyle-VerticalAlign="Middle" Goto="0" GvPageCount="0" ShowCheckBox="False"
             OnRowDataBound="gv_ArchiveList_RowDataBound" >
            <Columns>
                <asp:BoundField HeaderText="序号" HeaderStyle-Width="2%" DataField="RN" ItemStyle-HorizontalAlign="Center">
                </asp:BoundField>
                <asp:BoundField DataField="DataID" Visible="false" />
                <asp:BoundField HeaderText="题&nbsp;&nbsp;&nbsp;名" DataField="TITLE" HeaderStyle-CssClass="wordspace2" ItemStyle-CssClass="cellPadding" ></asp:BoundField>
                <asp:BoundField HeaderText="档    号" DataField="ARCHIVENUM" HeaderStyle-Width="15%" ItemStyle-CssClass="cellPadding"></asp:BoundField>
                <asp:BoundField HeaderText="文件编号" DataField="FILENUM" HeaderStyle-Width="7%" ItemStyle-HorizontalAlign="Center">
                </asp:BoundField>
                <asp:BoundField HeaderText="份  数" DataField="fs" HeaderStyle-Width="2%" ItemStyle-HorizontalAlign="Center">
                </asp:BoundField>
                <asp:BoundField HeaderText="页  数" DataField="PAGENUM" HeaderStyle-Width="2%" ItemStyle-HorizontalAlign="Center">
                </asp:BoundField>
                <asp:BoundField HeaderText="责任者" DataField="publisher" HeaderStyle-Width="8%" ItemStyle-HorizontalAlign="Center">
                </asp:BoundField>
                <asp:BoundField HeaderText="日  期" DataField="publishtime" HeaderStyle-Width="8%" ItemStyle-HorizontalAlign="Center"
                    ></asp:BoundField>
                <asp:BoundField HeaderText="密  级" DataField="F_SECURITYTYPE" HeaderStyle-Width="7%"
                    ItemStyle-HorizontalAlign="Center"></asp:BoundField>
                <asp:BoundField HeaderText="保管期限" HeaderStyle-CssClass="titlePre"
                 DataField="F_KEEPTIME" HeaderStyle-Width="4%" ItemStyle-HorizontalAlign="Center">
                </asp:BoundField>
                <asp:BoundField HeaderText="电子文件数" DataField="F_KEEPTIME" HeaderStyle-Width="4%" ItemStyle-HorizontalAlign="Center">
                </asp:BoundField>
                <asp:BoundField HeaderText="备  注" DataField="remark" HeaderStyle-Width="2%" ItemStyle-HorizontalAlign="Center">
                </asp:BoundField>
            </Columns>
        </ep:EPGridView>
    </div>
</asp:Content>
